//**************************************************************************************
// OrderDetail Generated Class File
//**************************************************************************************
//**** DO NOT CHANGE THIS FILE.  THE CONTENTS WILL BE OVERRIDEN ON NEXT MODEL SAVE. ****
//**************************************************************************************
using System;
using System.ComponentModel;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
using DevExpress.Xpo;

namespace Demo.Module
{
	[ImageName("BO_Unknown")]
	[CreatableItem(true)]
	[NavigationItem(true)]
	[DefaultListViewOptions()]
	public partial class OrderDetail : BaseObject
	{
		public OrderDetail() : base()
		{
		}

		public OrderDetail(Session session) : base(session)
		{
		}

		private Int16 m_quantity;
		[Size(50)]
		public Int16 Quantity
		{
			get { return m_quantity; }
			set { SetPropertyValue("Quantity", ref m_quantity, value); }
		}

		private Order m_order;
		[Aggregated]
		[Association("BusinessModel.OrderOrderDetail")]
		public Order Order
		{
			get { return m_order; }
			set { SetPropertyValue("Order", ref m_order, value); }
		}

		private Product m_product;
		[Aggregated]
		[Association("BusinessModel.ProductOrderDetail")]
		public Product Product
		{
			get { return m_product; }
			set { SetPropertyValue("Product", ref m_product, value); }
		}

	}
}
